#include "dialog.h"
#include "ui_dialog.h"
#include<QFontDialog>
Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
}

Dialog::~Dialog()
{
    delete ui;
}


void Dialog::on_pushButton_clicked()
{
    bool isbool;
    QFont font=QFontDialog::getFont(&isbool);
    if(isbool)
    {
        ui->lineEdit->setFont(font);
    }

}
